"""
    Author:
    Date: 2019-08-11

    微信管理后台-test
"""

from django.shortcuts import render

from entities import short_link_mgr

from .. import helpers
from .. helpers import gma_login_required


@gma_login_required
def test_textarea(request):
    """ 首页 """
    context = helpers.build_context(request)
    # context['short_url'] = short_link_mgr.make_short_link('http://m.peppertv.cn/mp/download/app/xiangyu/')
    context['short_url'] = short_link_mgr.make_short_link('https://wx.mqnetswork.com/partner/3/promote/counter.js')
    return render(request, 'gma/test/test_textarea.html', context)


if __name__ == '__main__':
    print('ok')
